import createAxios from '/@/utils/axios'

export const url = '/admin/System/'

// index
export function index(params: object = {}) {
    return createAxios({
        url: url + 'index',
        method: 'get',
        params: params,
    })
}

// update
export function update(params: object = {}, options: object = {}) {
    return createAxios({
        timeout: 0,
        url: url + 'update',
        method: 'post',
        data: params,
    }, options)
}

// update_log
export function update_log() {
    return createAxios({
        url: url + 'update_log',
        method: 'get',
    })
}
